//
//  YMClassify.swift
//  YMSwiftUI
//
//  Created by anscen on 2022/3/10.
//

import UIKit
import HandyJSON

class YMClassify: HandyJSON {
    var press   :[YMClassifyItem]? = nil
    var male    :[YMClassifyItem]? = nil
    var picture :[YMClassifyItem]? = nil
    var female  :[YMClassifyItem]? = nil
    required init() {}
}
struct YMClassifyItem :HandyJSON,Hashable{
    var bookCover :[String]  = []
    var bookCount    :Int    = 0
    var monthlyCount :Int    = 0
    var name         :String = ""
    
    var cover :String{
        return self.bookCover.first?.cover ?? ""
    }
}
